<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>
    /*
    页面之间的通信方法：
        1、URL进行传参，拿到查询串
        http://127.0.0.1:5500/demo.html?id=123
            location.search.split("?")==>["","id=123"]
            location.search.split("?")[1]==>"id=123"
            location.search.split("?")[1].split("=")==>["id","123"]
            location.search.split("?")[1].split("=")[1]==>123
        2、localStorage(本地永久存储 5M左右)
            sessionStorage(页面关闭时销毁)
            cookie(4KB左右，随着请求，会将cookie信息传给后台)
            localStorage.setItem("key",String)
            localStorage.getItem("key")
            ......



    */










    </script>
    
</body>
</html>